/** Уведомлени я Growl /по хорошему вынести их в отдельный файл **/
$.growl(false, {
    icon_type: 'class',
    offset: 50,
    spacing: 10,
    z_index: 1031,
    delay: 5000,
    timer: 1000,
    mouse_over: true,
    placement: {
        from: 'top',
        align: 'center'
    },
    animate: {
//		enter: 'animated fadeInDown',
//		enter: 'animated tada',
//		exit: 'animated fadeOutUp'
    }
});

function growl_danger(title, message) {
    $.growl({
        icon: 'glyphicon glyphicon-warning-sign',
        title: " " + title + " ",
        message: message
    }, {
        type: 'danger'
    });
}

function growl_success(title, message) {
    $.growl({
        icon: 'glyphicon glyphicon-ok',
        title: " " + title + " ",
        message: message
    }, {
        type: 'success'
    });
}

